package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.scheduler.domin.IntegralLevelAndTitleDTO;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xuanqicheng
 */
@Repository
public class IntegralLevelInfoDao {

    @Autowired
    private SqlSession sqlSession;

    @Cacheable(value = "timeout-cache-scheduler-getIntegralLevelAndTitle")
    public List<IntegralLevelAndTitleDTO> getIntegralLevelAndTitle() {
        return sqlSession.selectList("getIntegralLevelAndTitle");
    }
}
